﻿using System;
using HAVNet.Intros.AST;


namespace HAVNet.Transformers.Walkers
{
    public delegate void ClassPropertyFound (ASTMemberDeclProperty property);

    class WalkerClassesProperties
    {
        public static void get (ASTTypeDeclClass @class, ClassPropertyFound f)
        {
            foreach (ASTMemberDecl decl in @class.members)
                if (decl is ASTMemberDeclProperty)
                    f((ASTMemberDeclProperty)decl);
        }
    }
}
